#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"
#include"queue.h"

void test1()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	StackPop(&s);
	//StackPop(&s);
	StackDestroy(&s);
}
void test2()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	//QueuePop(&q);
	printf("%d ", QueueFront(&q));
	printf("%d ", QueueBack(&q));
	QueueDestroy(&q);
}
int main()
{
	test1();
	test2();
	return 0;
}